package com.campus.counseling.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.campus.counseling.entity.Appointment;
import com.campus.counseling.model.dto.AppointmentQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AppointmentMapper extends BaseMapper<Appointment> {
    
    /**
     * 分页查询预约列表
     */
    Page<Appointment> selectAppointmentPage(Page<Appointment> page, @Param("query") AppointmentQuery query);
    
    /**
     * 根据ID查询预约详情
     */
    Appointment selectAppointmentById(@Param("id") Long id);
} 